<%@page contentType="text/html;charset=utf-8"%>
<script type="text/javascript" src="../js/jquery.js">
</script>
<script type="text/javascript">

$(function() {
	$("#logininfo").html(
					'<img src="../images/load.gif" align="middle" width="14" heigth="14"/>正在加载登录信息...');
	$.getJSON("../user/loginInfo.action?time=" + (new Date()).getTime(),
			function(json) {
				if (json.loggedIn) {
					var nickname=json.nickname;
					var message="";
					if(json.last_login_time=="0"){
						message="你是首次登录";
					}else{
						message="你上次登录的时间是："+json.last_login_time+"，ip是："+json.last_login_ip;
					}
					$("#logininfo").html('<b>您好 <font color="orange">  '+nickname+'</font>，欢迎光临当当网</b>,'+message+'[&nbsp;<a href="../user/Logout.action" class="b">退出</a>&nbsp;]');
				}else{
					$("#logininfo").html('[&nbsp;<a href="../user/tologin.action" class="b">登录</a>|<a href="../user/toregister.action " class="b">注册</a>&nbsp;]');
				}
			});
});
</script>
<link href="../css/book_head090107.css" rel="stylesheet" type="text/css" />
<div class="head_container">
	<div class="head_welcome">
		<div class="head_welcome_right">
			<span class="head_welcome_text"> </span>
			<span class="head_welcome_text"> <span class="little_n">
					| <a href="#" name="mydangdang" class="head_black12a">我的当当</a> | <a
					href="#" name="helpcenter" class="head_black12a" target="_blank">帮助</a>
					| </span> </span>
			<div class="cart gray4012">
				<a href="../cart/cartList.action">购物车</a>
				
			</div>
		</div>
		<span class="head_toutext" id="logininfo"> </span>
	</div>
	<div class="head_head_list">
		<div class="head_head_list_left">
			<span class="head_logo"><a href="#" name="backtobook"><img
						src="../images/booksaleimg/book_logo.gif" /> </a> </span>
		</div>
		<div class="head_head_list_right">

			<div class="head_head_list_right_b">
			</div>
		</div>
	</div>
	<div class="head_search_div">

	</div>
	<div class="head_search_bg"></div>
</div>

